x86/vMSI-X: add further checks to snoop logic
authorJan Beulich <jbeulich@suse.com>
Thu, 28 Apr 2016 13:10:22 +0000 (15:10 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 28 Apr 2016 13:10:22 +0000 (15:10 +0200)
commitde8627767968d84385648b399317b1b55323bc15
tree1a7a4aaa4b6e9d5b37fb99bcdfb9e0acfbd2ce29
parent670ee15ac1e3de7c15381fdaab0e531489b48939
x86/vMSI-X: add further checks to snoop logic

msixtbl_range(), as any other MMIO ->check() handlers, may get called
with other than the base address of an access - avoid the snoop logic
considering those.

Also avoid considering vCPU-s not blocked in the hypervisor in
msixtbl_pt_register(), just to be on the safe side.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/hvm/vmsi.c